<html>
<head>
<script type="text/javascript" src="../../resource/js/hrm/common.js"></script>
<script type="text/javascript" src="../../resource/js/hrm/pdfexport.js"></script>
<script type="text/javascript" src="../../dwr/engine.js"></script>
<script type="text/javascript" src="../../dwr/util.js"></script>
<script type='text/javascript' src='../../dwr/interface/EmpInfoCard.js'></script>
<style type="text/css">
body{margin:0;padding:0;align:center;}
td{white-space:nowrap;}
th{white-space:nowrap}
.gridtableList {
	background-color: #FFFFFF;
	empty-cells: show;
	border-collapse: separate !important;
	border-collapse: collapse;
	border:1px solid #6BB5DA;
	}
.gridtableList tr {
	background-color:expression(bgColor=rowIndex%2==0?'FFFFFF':'#F6F6F6');
	height: 15px;	
}
.gridtableList tr:hover {
	background-color: #F6F6F6;
}
.gridtableList th {
	font-size: 12px;
	color: #666666;
	font-weight: bold;
	text-align: center;
	background-color: #DDF0F8;
	background-image: url(../../resource/images/moduleTab_middle.gif);
	background-repeat: repeat-x;
	background-position: bottom;
	padding-left: 5px;
	padding-right: 5px;
	border-bottom: 1px solid #DDF0F8;
	height: 20px;
}
.gridtableList td {
	height: 18px;
	font-size:12px;
	border-top-width: 0px;
	border-left-width: 0px;
	word-wrap:break-word;
	overflow:hidden;
}
h3 { color:#7f0000; font-size:20px; }
</style>
<script type="text/javascript">
function closeWindow(){
        window.close();
}
</script>
<title>员工资料信息卡</title> 
</head>
<body>
<center>
<OBJECT id="wb" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" name="wb"></OBJECT>
<input type="hidden" id="empId" value="${employee.id}"/>
<input type="hidden" id="empImageFile" value="${empImageFile?default("")}"/>
<table width="680" border="0" align="center">
<tr>
  <td align="left" rowspan="3" width="185">
      <img src="../../resource/images/logo.gif"/>
  </td>
  <td align="right" colspan="2">
      <input onclick="javascript:printreview()" class="button" type="button" value="打印预览" name="button_printreview" id="button_printreview"/>
  	  <input onclick="javascript:printit()" class="button" type="button" value="打印" name="button_print" id="button_print"/>
      <input onclick="javascript:exportPdf_empInfo()" class="button" type="button" value="导出PDF" name="button_pdf" id="button_pdf"/>
	  <input onclick="closeWindow();" class="button" type="button" value="关闭" id="button_close"/>
  </td>
</tr>
<tr>
  <td align="center" width="300" nowrap="nowrap">
      <h3><#if employee.empStatus==1>员工资料信息卡
		 <#else>离职员工资料信息卡</#if></h3>
  </td>
  <td align="left"> </td>
</tr>
</table>
<table width="680" class="gridtableList">
  <tr>
    <th colspan="8" nowrap="nowrap"><div align="left">基本资料</div></th>
  </tr>
  <tr>
    <td align="left" width="85">员工姓名：</td>
    <td align="left" width="85">${employee.empName}</td>
    <td align="left" width="80">员工编号：</td>
    <td align="left" width="90">${employee.empDistinctNo}</td>
    <td align="left" width="80">用工形式：</td>
    <td align="left" width="85"><#if employee.empType?exists>${employee.empType.emptypeName}</#if></td>
    <td align="left" width="175" colspan="2"></td>
  </tr>
  <tr>
   <td align="left">出生年月：</td>
   <td align="left"><#if employee.empBirthDate?exists>${employee.empBirthDate}</#if></td>
   <td align="left">性别：</td>
   <td align="left">
        <#if employee.empGender?exists && employee.empGender==1>男<#else>女</#if>
   </td>
   <td align="left">婚否:</td>
   <td align="left">
    	<#if employee.empMarital?exists && employee.empMarital==1>已婚<#else>未婚</#if>
   </td>
   <td align="left" colspan="2" rowspan="7">
    	<img border="1" id="showPicture" style="border: 1px darkslategray outset;" name="showPicture" src="<#if employee.empImage?exists>${employee.empImage}<#else>''</#if>" align="left" width="110" height="140"/>
   </td>
  </tr>
  <tr>
    <td align="left">政治面貌：</td>
    <td align="left">${employee.empPolitics?default("")}</td>
    <td align="left">民族：</td>
    <td align="left">${employee.empNation?default("")}</td>
    <td align="left">血型：</td>
    <td align="left">${employee.empBlood?default("")}</td>
  </tr>
  <tr>
  	<td align="left">毕业学校：</td>
    <td align="left">${employee.empSchool?default("")}</td>
    <td align="left">专业：</td>
    <td align="left">${employee.empSpeciality?default("")}</td>
    <td align="left">学历：</td>
    <td align="left">${employee.empDiploma?default("")}</td>
  </tr>
  <tr>
  	<td align="left">
    	<#if employee.empIdentificationType==0>身份证：
    	<#elseif employee.empIdentificationType==1>护照：
    	<#elseif employee.empIdentificationType==2>驾驶证：
    	<#elseif employee.empIdentificationType==3>毕业证：
    	<#elseif employee.empIdentificationType==9>其他：</#if>
    </td>
    <td align="left">${employee.empIdentificationNo?default("")}</td>
    <td align="left">籍贯:</td>
  	<td align="left">${employee.empCityNo?default("")}</td>
    <td align="left">社保种类：</td>
    <td align="left"><#if employee.empBenefitType?exists>${employee.empBenefitType.benefitTypeName}</#if></td>
  </tr>
  <tr>
    <td align="left">家庭电话：</td>
    <td align="left">${employee.empHomePhone?default("")}</td>
    <td align="left">移动电话：</td>
    <td align="left">${employee.empMobile?default("")}</td>
     <td align="left">工作电话</td>
    <td align="left">${employee.empWorkPhone?default("")}</td>
  </tr>
   <tr>
    <td align="left">参加工作日期：</td>
    <td align="left"><#if employee.empWorkDate?exists>${employee.empWorkDate?string("yyyy-MM-dd")}</#if></td>
    <td align="left">入职日期：</td>
    <td align="left"><#if employee.empJoinDate?exists>${employee.empJoinDate?string("yyyy-MM-dd")}</#if></td>
    <td align="left">转正日期：</td>
    <td align="left"><#if employee.empConfirmDate?exists>${employee.empConfirmDate?string("yyyy-MM-dd")}</#if></td>
  </tr>
  <tr>
  	<td align="left">组织单元：</td>
    <td align="left" colspan="3">${employee.empDeptNo.departmentName?default("")}</td>
    <td align="left">职位：</td>
    <td align="left">${employee.empPbNo.pbName?default("")}</td>
  </tr>
  <tr>
    <td align="left">工作地区：</td>
    <td align="left"><#if employee.empLocationNo?exists>${employee.empLocationNo.locationName}</#if></td>
 	  <td align="left">考勤方式:</td>
 	  <#if employee.empShiftType==0>
 	  <td align="left" colspan="3">免刷卡</td>
 	  <#else>
 	  <td align="left">
 	  <#if employee.empShiftType==2>默认班次刷卡
	  <#elseif employee.empShiftType==3>按班次刷卡
	  </#if>
 	  </td>
	 	<td align="left">考勤卡号:</td>
	 	<td align="left">${employee.empShiftNo?default("")}</td>
 	  </#if>
 	<td align="left" colspan="2"></td>
  </tr>
  <tr>
  	<td align="left">邮箱地址：</td>
    <td align="left">${employee.empEmail?default("")}</td>
    <td align="left">户口所在地：</td>
    <td align="left">${employee.empResidenceLoc?default("")}</td>
    <td align="left">紧急联系人：</td>
    <td align="left">${employee.empUrgentContact?default("")}</td>
    <td align="left" colspan="2"></td>
  </tr>
  <tr>
    <td align="left"><#if connectionType?exists>${connectionType?default("")}</#if>：</td>
    <td align="left"><#if connectionNo?exists>${connectionNo?default("")}</#if></td>
    <td align="left">档案所在地：</td>
    <td align="left">${employee.empProfileLoc?default("")}</td>
    <td align="left">紧急联系方式：</td>
    <td align="left">${employee.empUrgentConMethod?default("")}</td>
    <td align="left" colspan="2"></td>
  </tr>
  <tr>
    <td align="left">家庭住址（邮编）：</td>
    <td align="left">${employee.empHomeAddr?default("")}</td>
  	<td align="left">${employee.empHomeZip?default("")}</td>
  	<td align="left">当前住址（邮编）：</td>
    <td align="left">${employee.empCurrAddr?default("")}</td>
    <td align="left">${employee.empCurrZip?default("")}</td>
    <td align="left" colspan="2"></td>
  </tr>
  <#if employee.empComments?exists>
  <tr>
    <td align="left">备注：</td>
    <td align="left" colspan="7">${employee.empComments?default("")}</td>
  </tr>
  </#if>
  
  <#if empaddconfList?exists && (empaddconfList?size>0)>
  <tr>
  	<th colspan="8"><div align="left">自定义信息</div></th>
  </tr>
  <tr>
  	<td align="left" colspan="8">
		 <table width="680" cellpadding="0" cellspacing="0" border="0">
		    <tr>
		    <#list empaddconfList as item>
				<td align="left" width="100">${item.eadcFieldName+'：'}</td>
				<td align="left" width="240">
					<#if item.eadcFieldType=='input'||item.eadcFieldType=='date'||item.eadcFieldType=='textarea'>
						${item.value?default("")}
					</#if>		
					<#if item.eadcFieldType=='select'>
						<#list item.fieldValueList as fieldValue>
								<#if item.value?exists && item.value==fieldValue>${item.value?default("")}</#if>
						</#list>
					</#if>
				</td>
				<#if item_index%2==1 && item_has_next>
				</tr><tr>
				</#if>
				<#if item_index%2==1 &&!item_has_next>
				</tr>
				</#if>
				<#if item_index%2==0 &&!item_has_next>
				<td align="left"></td><td align="left"></td></tr>
				</#if>
			</#list>
		</table>
	</td>
  </tr>
  </#if>
  
  <#if ehjList?exists && (ehjList?size>0)>
	<tr>
		<th colspan="8"><div align="left">工作经历</div></th>
	</tr>
	<tr>
		<td align="left" colspan="8">
			 <table width="680" cellpadding="0" cellspacing="0" border="0">
			    <#list ehjList as ehj>
			        <tr id="">
						<td align="left" width="100"><#if ehj.ehjDateStart?exists>${ehj.ehjDateStart?string("yyyy/MM")}</#if></td>
						<td align="left" width="100"><#if ehj.ehjDateEnd?exists>${ehj.ehjDateEnd?string("yyyy/MM")}</#if></td>
						<td align="left" width="100">${ehj.ehjDateEnd?default("")}</td>
						<td align="left" width="100">${ehj.ehjPosition?default("")}</td>
						<td align="left" width="280">${ehj.ehjDescription?default("")}</td>	
					</tr>
			    </#list>
			</table>
		</td>
	</tr>
  </#if>
  
  <#if eheList?exists && (ehjList?size>0)>
  <tr>
    <th colspan="8"><div align="left">教育背景</div></th>
  </tr>
  <tr>
    <td align="left" colspan="8">
    	<table width="680" cellpadding="0" cellspacing="0" border="0">
			<#list eheList as ehe>
			        <tr id="">
						<td align="left" width="100"><#if ehe.eheDateStart?exists>${ehe.eheDateStart?string("yyyy-MM-hh")}</#if></td>
						<td align="left" width="100"><#if ehe.eheDateEnd?exists>${ehe.eheDateEnd?string("yyyy-MM-hh")}</#if></td>
						<td align="left" width="200">${ehe.eheSchool?default("")}</td>
						<td align="left" width="180">${ehe.eheMajor?default("")}</td>
						<td align="left" width="100">${ehe.eheDegree?default("")}</td>	
					</tr>
			</#list>
		</table>
    </td>
  </tr>
  </#if>
  
  <#if ehtList?exists&&(ehtList?size>0)>
  <tr>
    <th colspan="8"><div align="left">培训经历</div></th>
  </tr>
  <tr>
  	<td align="left" colspan="8">
		  <table width="680" cellpadding="0" cellspacing="0" border="0">
			<#list ehtList as eht>
			        <tr id="">
						<td align="left" width="100"><#if eht.ehtStartDate?exists>${eht.ehtStartDate?string("yyyy-MM-hh")}</#if></td>
						<td align="left" width="100"><#if eht.ehtEndDate?exists>${eht.ehtEndDate?string("yyyy-MM-hh")}</#if></td>
						<td align="left" width="150">${eht.ehtDepartment?default("")}</td>
						<td align="left" width="150">${eht.ehtLocation?default("")}</td>
						<td align="left" width="180">${eht.ehtCourse?default("")}</td>	
						<td align="left" width="100">${eht.ehtCertificate?default("")}</td>
					</tr>
			</#list>
		</table>
	</td>
  </tr>
  </#if>
  
  <#if erelList?exists&&(erelList?size>0)>
  <tr>
    <th colspan="8"><div align="left">社会关系</div></th>
  </tr>
  <tr>
  	<td align="left" colspan="8">
		  <table width="680" cellpadding="0" cellspacing="0" border="0">
		  <#list erelList as ere>
			      <tr id="">
			      <td align="left" width="100">${ere.erelRelationship?default("")}</td>
			      <td align="left" width="100">${ere.erelName?default("")}</td>
						<td align="left" width="100"><#if ere.erelBirthday?exists>${ere.erelBirthday?string("yyyy-MM-hh")}</#if></td>
						<td align="left" width="180">${ere.erelCompany?default("")}</td>
						<td align="left" width="100">${ere.erelPosition?default("")}</td>	
						<td align="left" width="100">${ere.erelContactInfo?default("")}</td>
					</tr>
		  </#list>
		</table>
	</td>
  </tr>
  </#if>
  
  <#if contractList?exists&&(contractList?size>0)>
 	<tr>
 		<th colspan="8"><div align="left">人事合同</div></th>
 	</tr>
 	<tr>
 		<td align="left" colspan="8">
 			<table width="680" cellpadding="0" cellspacing="0" border="0">
 				<#list contractList as contract>
			        <tr id="">
			            <td align="left" width="100"><#if contract.ectStartDate?exists>${contract.ectStartDate?string("yyyy-MM-hh")}</#if></td>
			            <td align="left" width="100"><#if contract.ectEndDate?exists>${contract.ectEndDate?string("yyyy-MM-hh")}</#if></td>
			            <td align="left" width="100">${contract.ectNo?default("")}</td>
			            <td align="left" width="100">${contract.ectName?default("")}</td>
						<td align="left" width="80"><#if contract.ectStatus=='1'>有效<#elseif contract.ectStatus=='2'>终止 <#elseif contract.ectStatus=='3'>解除</#if></td>
						<td align="left" width="80"><#if contract.etcExpire==0>有限期<#elseif contract.etcExpire==1>无限期</#if></td>	
						<td align="left" width="120">${contract.ectComments?default("")}</td>
					</tr>
		        </#list>
 			</table>
 		</td>
 	</tr>
  </#if>
  
  <#if transferList?exists&&(transferList?size>0)>
  <tr>
    <th colspan="8"><div align="left">变动记录</div></th>
  </tr>
  <tr>
  	<td align="left" colspan="8">
  		<table width="680" cellpadding="0" cellspacing="0" border="0">
  			<#list transferList as transfer>
			        <tr id="">
			            <td align="left" width="100"><#if transfer.eftTransferDate?exists>${transfer.eftTransferDate?string("yyyy-MM-hh")}</#if></td>
			            <td align="left" width="60"><#if transfer.eftTransferType=='0'>平调<#elseif transfer.eftTransferType=='1'>晋级 <#elseif transfer.eftTransfedType=='2'>降级
			                 <#elseif transfer.eftTransfedType=='3'>转岗 <#elseif transfer.eftTransfedType=='4'>转正</#if></td>
			            <td align="left" width="90"><#if transfer.eftOldDeptNo?exists>${transfer.eftOldDeptNo.departmentName?default("")}</#if></td>
			            <td align="left" width="90"><#if transfer.eftOldJobTitle?exists>${transfer.eftOldJobTitle.jobtitleName?default("")}</#if></td>
			            <td align="left" width="90"><#if transfer.eftNewDeptNo?exists>${transfer.eftNewDeptNo.departmentName?default("")}</#if></td>
			            <td align="left" width="90"><#if transfer.eftNewJobTitle?exists>${transfer.eftNewJobTitle.jobtitleName?default("")}</#if></td>
			            <td align="left" width="80">${transfer.eftReason?default("")}</td>
			            <td align="left" width="80">${transfer.eftComments?default("")}</td>
					</tr>
		    </#list>
  		</table>
  	</td>
  </tr>
  </#if>
  
  <#if evalList?exists&&(evalList?size>0)>
  <tr>
  	<th colspan="8"><div align="left">考评记录</div></th>
  </tr>
  <tr>
  	<td align="left" colspan="8">
  		<table width="680" cellpadding="0" cellspacing="0" border="0">
	  		<#list evalList as eval>
			        <tr id="">
			            <td align="left" width="80"><#if eval.eeStartDate?exists>${eval.eeStartDate?string("yyyy-MM-hh")}</#if></td>
			            <td align="left" width="80"><#if eval.eeEndDate?exists>${eval.eeEndDate?string("yyyy-MM-hh")}</#if></td>
			            <td align="left" width="100"><#if eval.department?exists>${eval.department.departmentName?default("")}</#if></td>
			            <td align="left" width="100"><#if eval.eePbNo?exists>${eval.eePbNo.pbName?default("")}</#if></td>
			            <td align="left" width="80"><#if eval.employeeByEeManager?exists>${eval.employeeByEeManager.empName?default("")}</#if></td>
			            <td align="left" width="60">${eval.eeType?default("")}</td>
			            <td align="left" width="80">${eval.eeRate?default("")}</td>
			            <td align="left" width="100">${eval.eeComments?default("")}</td>
					</tr>
		    </#list>
		</table>
  	</td>
  </tr>
  </#if>
 
  <#if rewardList?exists&&(rewardList?size>0)>
  <tr>
    <th colspan="8"><div align="left">奖惩记录</div></th>
  </tr>
  <tr>
  	<td align="left" colspan="8">
  		<table width="680" cellpadding="0" cellspacing="0" border="0">
           <#list rewardList as reward>
			        <tr id="">
			            <td align="left" width="100"><#if reward.erExeDate?exists>${reward.erExeDate?string("yyyy-MM-hh")}</#if></td>
			            <td align="left" width="100"><#if reward.department?exists>${reward.department.departmentName?default("")}</#if></td>
			            <td align="left" width="100"><#if reward.erPbNo?exists>${reward.erPbNo.pbName?default("")}</#if></td>
			            <td align="left" width="100">${reward.erTypeMean?default("")}</td>
			            <td align="left" width="280">${reward.erContent?default("")}</td>
					</tr>
		    </#list>
		</table>
  	</td>
  </tr>
  </#if>
  
  <#if quitList?exists&&(quitList?size>0)>
  	<tr>
  		<th colspan="8"><div align="left">离职记录</div></th>
  	</tr>
  	<tr>
  		<td align="left" colspan="8">
  			<table width="680" cellpadding="0" cellspacing="0" border="0">
	  			<#list quitList as quit>
			        <tr id="">
			            <td align="left" width="100"><#if quit.eqDate?exists>${quit.eqDate?string("yyyy-MM-hh")}</#if></td>
			            <td align="left" width="60"><#if quit.eqType=='0'>辞职<#elseif quit.eqType=='1'>复职 <#elseif quit.eqType=='2'>停薪留职
			                 <#elseif quit.eqType=='3'>退休 <#elseif quit.eqType=='4'>辞退<#elseif quit.eqType=='5'>合同到期<#elseif quit.eqType=='6'>其他</#if></td>
			            <td align="left" width="100"><#if quit.eqPermission?exists>${quit.eqPermission.empName?default("")}</#if></td>
			            <td align="left" width="100"><#if quit.erPbNo?exists>${quit.erPbNo.pbName?default("")}</#if></td>
			            <td align="left" width="160">${quit.eqReason?default("")}</td>
			            <td align="left" width="160">${quit.erComments?default("")}</td>
					</tr>
		        </#list>
	   		</table>
  		</td>
  	</tr>
  </#if>

</table>
</center>
</body>
</html>